<%# locals: (confirm: false, label: nil, name: nil, autocomplete: nil) %>
<% if confirm
  label ||= "#{rodauth.password_confirm_label}#{rodauth.input_field_label_suffix}"
  name ||= rodauth.password_confirm_param
  autocomplete ||= "new-password"
else
  label ||= "#{rodauth.password_label}#{rodauth.input_field_label_suffix}"
  name ||= rodauth.password_param
  autocomplete ||= rodauth.password_field_autocomplete_value
end %>

<%== part("components/form/text", name:, type: "password", label:, attributes: { required: true, autocomplete: }) %>
